import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// mock引入
// import { mockXHR } from '@/mock/index';

// if (process.env.NODE_ENV === 'mock') {
//     // 判断是否为mock模式
//     mockXHR();
//   }
const app = createApp(App)

app.use(router).use(ElementPlus).mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component as any)
  }
